<?php
define( 'DS' , DIRECTORY_SEPARATOR );
define('WEBROOT', dirname(realpath(__FILE__)));
//define('FRAMEROOT', WEBROOT . '/frame');
define('FRAMEROOT', WEBROOT);
define('UPLOADPATH', dirname(__FILE__).DS.'upload');

ini_set('default_socket_timeout', -1);
ini_set('max_execution_time', 0);
set_time_limit(0);

//数据库参数
define('DB_TYPE', 'mysql');
define('DB_HOST', '192.168.3.203');
define('DB_PORT', '3306');
define('DB_NAME', 'dtpay');//erp_new
define('DB_USER', 'root');
define('DB_PASSWORD', 'sql@8234ERe8');
define('DB_PREFIX', '');
define('DB_CHARSET', 'utf8');

define('ERP_DB','erp');
define('PAY_DB','dtpay');

//mongodb设置
define('MONGO_DSN', 'mongodb://tang:tang@192.168.3.205:27017/tang');
define('MONGO_DB', 'tang');

//memecache配置
define('MEMCACHE_OPEN', TRUE);
define('MEMCACHE_COMP', FALSE);
define('MEMCACHE_SERVERS', '127.0.0.1');
define('MEMCACHE_PORT', '11211');

//tfs
define('TFS_UPLO0AD', 'http://192.168.3.201:80/v1/tfs'); //tfs上传地址

//require(FRAMEROOT . "/lib/class_db.php");
//require(FRAMEROOT . "/lib/class_mongo.php");
//require(FRAMEROOT . "/lib/class_upload.php");
//require(FRAMEROOT . "/lib/class_cache.php");
